package com.modbus.tool.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.modbus.tool.entity.dto.CollectedDataVO;
import com.modbus.tool.entity.po.CollectedData;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Author: Leno
 * @Date: 2025-08-07
 * @Description: CollectedDataMapper
 */
@Mapper
public interface CollectedDataMapper extends BaseMapper<CollectedData> {
    /**
     * 分页查询采集数据
     *
     * @param page 分页参数
     * @param qw   查询条件
     * @return 分页结果
     */
    Page<CollectedDataVO> findPage(Page<CollectedData> page,
                                   @Param("ew") QueryWrapper<CollectedData> qw);

}

